home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / X11 / Xdefs.h < prev    next >
C/C++ Source or Header  |  2006-04-12  |  2KB  |  111 lines

  1. /* $XFree86: xc/include/Xdefs.h,v 1.2 1999/08/22 06:21:20 dawes Exp $ */
  2.  
  3. /***********************************************************
  4.  
  5. Copyright (c) 1999  The XFree86 Project Inc.
  6.  
  7. All Rights Reserved.
  8.  
  9. The above copyright notice and this permission notice shall be included in
  10. all copies or substantial portions of the Software.
  11.  
  12. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  13. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  14. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  15. OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  16. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  17. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  18.  
  19. Except as contained in this notice, the name of The XFree86 Project
  20. Inc. shall not be used in advertising or otherwise to promote the
  21. sale, use or other dealings in this Software without prior written
  22. authorization from The XFree86 Project Inc..
  23.  
  24. */
  25.  
  26. /**
  27.  ** Types definitions shared between server and clients 
  28.  **/
  29.  
  30. #ifndef _XDEFS_H
  31. #define _XDEFS_H
  32.  
  33. #ifdef _XSERVER64
  34. #include <X11/Xmd.h>
  35. #endif 
  36.  
  37. #ifndef _XTYPEDEF_ATOM
  38. #  define _XTYPEDEF_ATOM
  39. #  ifndef _XSERVER64
  40. typedef unsigned long Atom;
  41. #  else
  42. typedef CARD32 Atom;
  43. #  endif
  44. #endif
  45.  
  46. #ifndef Bool
  47. #  ifndef _XTYPEDEF_BOOL
  48. #   define _XTYPEDEF_BOOL
  49. typedef int Bool;
  50. #  endif
  51. #endif
  52.  
  53. #ifndef _XTYPEDEF_POINTER
  54. #  define _XTYPEDEF_POINTER
  55. typedef void *pointer;
  56. #endif
  57.  
  58. #ifndef _XTYPEDEF_CLIENTPTR
  59. typedef struct _Client *ClientPtr;
  60. #  define _XTYPEDEF_CLIENTPTR
  61. #endif
  62.  
  63. #ifndef _XTYPEDEF_XID
  64. #  define _XTYPEDEF_XID
  65. #  ifndef _XSERVER64
  66. typedef unsigned long XID;
  67. #  else
  68. typedef CARD32 XID;
  69. #  endif
  70. #endif
  71.  
  72. #ifndef _XTYPEDEF_MASK
  73. #  define _XTYPEDEF_MASK
  74. #  ifndef _XSERVER64
  75. typedef unsigned long Mask;
  76. #  else
  77. typedef CARD32 Mask;
  78. #  endif
  79. #endif
  80.  
  81. #ifndef _XTYPEDEF_FONTPTR
  82. #  define _XTYPEDEF_FONTPTR
  83. typedef struct _Font *FontPtr; /* also in fonts/include/font.h */
  84. #endif
  85.  
  86. #ifndef _XTYPEDEF_FONT
  87. #  define _XTYPEDEF_FONT
  88. typedef XID    Font;
  89. #endif
  90.  
  91. #ifndef _XTYPEDEF_FSID
  92. #  ifndef _XSERVER64
  93. typedef unsigned long FSID;
  94. #  else
  95. typedef CARD32 FSID;
  96. #  endif
  97. #endif
  98.  
  99. typedef FSID AccContext;
  100.  
  101. /* OS independant time value 
  102.    XXX Should probably go in Xos.h */
  103. typedef struct timeval **OSTimePtr;
  104.  
  105.  
  106. typedef void (* BlockHandlerProcPtr)(pointer /* blockData */,
  107.                      OSTimePtr /* pTimeout */,
  108.                      pointer /* pReadmask */);
  109.  
  110. #endif
  111.